#include "SpriteLine.h"
using namespace cocos2d;
SpriteLine::SpriteLine(void)
{
}

SpriteLine::~SpriteLine(void)
{
}

SpriteLine * SpriteLine::node(const cocos2d::CCPoint &ptS,const cocos2d::CCPoint &ptE )
{
	SpriteLine *pNode=new SpriteLine;
	if (pNode)
	{
		pNode->autorelease();
		if (pNode->init(ptS,ptE))
		{
			return pNode;
		}
	}
	return NULL;
}


bool SpriteLine::init(const cocos2d::CCPoint &ptS,const cocos2d::CCPoint &ptE)
{
	if (!SpriteObject::init())
	{
		return false;
	}
	ptStart_=ptS;
	ptEnd_  =ptE;
	return true;
}